package com.bestcem.xm.txtanls.service;


import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.txtanls.grpc.service.param.worktable.ListWorktableParam;
import com.bestcem.xm.txtanls.service.dto.worktable.WorktableFromBIDTO;

import java.util.List;

/**
 * @author liheng
 * @version v1.0
 * @date 2021/5/11-9:15
 */
public interface WorktableService {


    /**
     * 查询单个数据源详情
     *
     * @param worktableId 数据源id
     * @return 单个数据源详情
     * @author liheng
     */
    ServiceResult<WorktableFromBIDTO> getWorktable(String worktableId);


    /**
     * 查询数据源列表
     *
     * @param param 组织id，用户id
     * @return 数据源信息列表
     * @author liheng
     */
    ServiceResult<List<WorktableFromBIDTO>> listWorktable(ListWorktableParam param);


}
